package com.cp.admin.modular.user.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户好友表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-26
 */
@TableName("user_friend")
public class UserFriend extends Model<UserFriend> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId("user_id")
    private Long userId;
    /**
     * 分组个数
     */
    @TableField("group_number")
    private Integer groupNumber;
    /**
     * 好友数量
     */
    @TableField("friend_number")
    private Integer friendNumber;
    /**
     * 特别关心好友数量
     */
    @TableField("special_number")
    private Integer specialNumber;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Integer groupNumber) {
        this.groupNumber = groupNumber;
    }

    public Integer getFriendNumber() {
        return friendNumber;
    }

    public void setFriendNumber(Integer friendNumber) {
        this.friendNumber = friendNumber;
    }

    public Integer getSpecialNumber() {
        return specialNumber;
    }

    public void setSpecialNumber(Integer specialNumber) {
        this.specialNumber = specialNumber;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "UserFriend{" +
        "userId=" + userId +
        ", groupNumber=" + groupNumber +
        ", friendNumber=" + friendNumber +
        ", specialNumber=" + specialNumber +
        "}";
    }
}
